/*
 * @Author: szx
 * @Date: 2022-03-25 13:25:35
 * @LastEditTime: 2022-03-25 13:29:04
 * @Description:
 * @FilePath: \leetcode\剑指offer\45\45.js
 */
/**
 * @param {number[]} nums
 * @return {string}
 */
var minNumber = function (nums) {
    nums.sort((a, b) => Number(a.toString() + b.toString()) - Number(b.toString() + a.toString()));
    return nums.join('');
};
console.log(minNumber([3, 30, 34, 5, 9]));
